From: Gregory Heytings Date: Fri, 14 Aug 2020 15:32:23 +0000 (+0200) Subject: Fix visual fringe glitch in diff-mode X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~5807^2~29 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f3d93eb401d7ed78f7c9e6492ce68142e51d5309;p=emacs.git Fix visual fringe glitch in diff-mode * lisp/vc/diff-mode.el (diff--font-lock-prettify): Fix problems with visual gaps in the fringes when changing font size (bug#42300). Copyright-paperwork-exempt: yes --- diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index d194d6c0a0e..bd5ac9b9a62 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -2518,7 +2518,7 @@ fixed, visit it in a buffer." '((?+ . (left-fringe diff-fringe-add diff-indicator-added)) (?- . (left-fringe diff-fringe-del diff-indicator-removed)) (?! . (left-fringe diff-fringe-rep diff-indicator-changed)) - (?\s . (left-fringe diff-fringe-nul)))))) + (?\s . (left-fringe diff-fringe-nul fringe)))))) (put-text-property (match-beginning 0) (match-end 0) 'display spec)))) ;; Mimicks the output of Magit's diff. ;; FIXME: This has only been tested with Git's diff output.